package whf.framework.web.tag.ext;

import whf.framework.i18n.ApplicationResource;

/**
 * 定义tabletag中用到的常量
 * @author wanghaifeng
 * @create Sep 29, 2006 9:30:55 PM
 * 
 */
public interface TableTagConstants {
	
	public final static int DEFAULT_PAGE_SIZE = 15;
	
	//定义常量消息字符串
	public final static String NAVIGATION_FIRST 	= ApplicationResource.get("navigation.first");
	public final static String NAVIGATION_PREV 		= ApplicationResource.get("navigation.prev");
	public final static String NAVIGATION_NEXT 		= ApplicationResource.get("navigation.next");
	public final static String NAVIGATION_LAST 		= ApplicationResource.get("navigation.last");
	public final static String BOOLEAN_TRUE 		= ApplicationResource.get("boolean.true");
	public final static String BOOLEAN_FALSE 		= ApplicationResource.get("boolean.false");
	public final static String BOOLEAN_ALL 			= ApplicationResource.get("boolean.all");
	
	public final static String CUSTOMIZE_COLUMNS 	= ApplicationResource.get("customize.columns");
	public final static String DESIGN_VIEW			= ApplicationResource.get("customize.design");
	public final static String DOWNLOAD				= ApplicationResource.get("button.download");
	
	//导出按钮标题
	public final static String EXPORT_PDF			= ApplicationResource.get("export.pdf");
	public final static String EXPORT_XLS			= ApplicationResource.get("export.xls");
	public final static String EXPORT_PREVIEW		= ApplicationResource.get("export.preview");

	//定义表风格
	public final static String CSS_TABLE_CLASS 			= "whf_table";
	public final static String CSS_TABLE_PK_CONTROL		= "whf_table_pk";
	public final static String CSS_TABLE_COUNTER		= "whf_table_counter";
	public final static String CSS_TABLE_HEADER_ROW 	= "whf_table_header_row";
	public final static String CSS_TABLE_HEADER_CELL 	= "whf_table_header_cell";
	public final static String CSS_TABLE_BODY_ROW1 		= "whf_table_body_row1";
	public final static String CSS_TABLE_BODY_ROW2 		= "whf_table_body_row2";
	public final static String CSS_TABLE_BODY_ROW_FOCUS 		= "whf_table_body_row_focus";
	
	public final static String CSS_TABLE_BODY_CELL 		= "whf_table_body_cell";
	
	//Block风格表常量
	public final static String CSS_BLOCK_TABLE_CLASS 	= "whf_block_table";
	public final static String CSS_BLOCK_CLASS 			= "whf_block";
	public final static String CSS_BLOCK_HEADER_ROW 	= "whf_block_header_row";
	public final static String CSS_BLOCK_HEADER_CELL 	= "whf_block_header_cell";
	public final static String CSS_BLOCK_BODY_ROW 		= "whf_block_body_row";
	public final static String CSS_BLOCK_BODY_CELL 		= "whf_block_body_cell";
	
	//定义表单显示风格
	public final static String CSS_FORM_CLASS			="whf_form";
	public final static String CSS_FORM_ROW_CLASS		="whf_form_row";
	public final static String CSS_FORM_LABEL_CLASS		="whf_form_label";
	public final static String CSS_FORM_CONTENT_CLASS	="whf_form_content";

	public static final String ROWNUM_SUFFIX = "_rownum";
	
	public static final String DISABLED = "disabled";
	
	public static final TableRowHTMLDecorator DEFAULT_ROW_DECORATOR = new LineNumberColorDifferRowDecorator();
	public static final ICollectionPropertyDisplay DEFAULT_COLLECTION_PROPERTY_DISPLAY = new DefaultCollectionPropertyDisplay();
}
